<template>
	<view class="list" @click.prevent="goteam(scitem.visiting.id)">
		<view class="list_top">
				<image :src="scitem.visiting.user.avatar" mode="widthFix"></image>
				<view class="list_title">
					<view class="flex justify align" style="width:100%">
						<view class="title_name">
							{{scitem.visiting.name}}-{{scitem.visiting.user.encoded}}
						</view>
					<!-- 	<view class="flex align" v-if="scitem.visiting.user.is_verify == 0">
							<image class="identIcon" src="../static/icon/icon/my/renzheng.png" mode="aspectFill"></image>
							<text>未认证</text>
						</view> -->
						<view class="renzheng flex align" v-if="scitem.visiting.user.is_verify == 1">
							<image class="identIcon" src="../static/icon/icon/home/renzheng.png" mode="aspectFill"></image>
							<text>已认证</text>
						</view>
					</view>
					<view class="flex justify align">
						<view class="title_dizhi flex align">
						<!-- 	<image src="../static/icon/addr.png" mode="aspectFill"></image>
							<text>{{scitem.visiting.province}}</text> -->
						</view>
						
						<view class="ipone" @tap.stop="toCall(scitem.visiting.phone)">
							<image src="../static/icon/tel.png" mode="widthFix"></image>
						</view>
					</view>
					
				</view>
			
			
			
		</view>
		<view class="list_bottom">
			<view class="bottom_list">
				<view class="troops_arr" v-for="(item,index) in scitem.visiting.troops_arr">
					{{item}}
				</view>
				<view class="work_arr bottom_lists2" v-for="(item,index) in scitem.visiting.work_arr">
					{{item}}
				</view>
	
			</view>
			<view class="bottom_content">
				{{scitem.visiting.introduce}}
			</view>
		</view>
	</view>
</template>

<script>
	const app = getApp()
	export default {
		data(){
			return {
				
			}
		},
		props: {
			scitem: {
				type: Object
			},
		},
		onLoad() {
			console.log('scitem',this.scitem)
		},
		methods:{
			// 拨打电话
			toCall(tel){
				uni.makePhoneCall({
					phoneNumber: tel //仅为示例
				});
			},
			goteam(id){
				uni.navigateTo({
					url:'/pages/TeamDetails/TeamDetails?id='+id
				})
			}
		}
	}
</script>

<style lang="scss">
	.list {
		background-color: #fff;
		padding: 20rpx;
		border-radius: 20rpx;
		margin: 20rpx;
		position: relative;
		
		.renzheng {
			position: absolute;
			top: 20rpx;
			right: 20rpx;
			color: var(--baseSuccsess);
			font-size: 20rpx;
		}

		.ipone {

			image {
				width: 60rpx !important;
				margin-top: 20rpx !important;
			}

		}

		.list_top {
			display: flex;
			justify-content: flex-start;

			image {
				width: 120rpx;
				border-radius: 50%;
				margin-right: 1rpx;
			}
			.identIcon{
				width: 24rpx;
				height: 24rpx;
			}
			.list_title {
				width: 82%;
				.title_name {
					font-size: 28rpx;
					font-weight: bold;
				}

				.title_dizhi {
					font-size: 24rpx;
					color: #333;
					margin-top: 18rpx;
					margin-left: 20rpx;

					image {
						width: 28rpx;
						height: 28rpx;
						margin-right: 12rpx;
					}
				}
			}
		}

		.list_bottom {
			.bottom_list {
				display: flex;
				justify-content: flex-start;
				margin: 20rpx 0;
				
				.work_arr,.troops_arr {
					margin-right: 12rpx;
					font-size: 25rpx;
					text-align: center;
					padding: 4rpx 10rpx;
					background-color: #F5F6FA;
					font-weight: 400;
				}
				.troops_arr{
					background-color: #E5F4FF;
					color: var(--base);
					font-weight: 600;
				}
				.bottom_lists2 {
					width: 145rpx;
					overflow: hidden;
					text-overflow: ellipsis;
					white-space: nowrap;
				}
			}

			.bottom_content {
				font-size: 28rpx;
				color: #000;
				font-weight: 500;
			}
		}
	}
</style>